import os

def remove_ds_store_files(start_path='.'):
    """
    Recursively remove all .DS_Store files from the given directory and its subdirectories
    """
    removed_count = 0
    
    for root, dirs, files in os.walk(start_path):
        for file in files:
            if file == '.DS_Store':
                file_path = os.path.join(root, file)
                try:
                    os.remove(file_path)
                    removed_count += 1
                    print(f"Removed: {file_path}")
                except Exception as e:
                    print(f"Error removing {file_path}: {e}")
    
    print(f"\nTotal .DS_Store files removed: {removed_count}")

if __name__ == "__main__":
    current_dir = os.getcwd()
    print(f"Starting removal of .DS_Store files from: {current_dir}")
    remove_ds_store_files(current_dir)